Integrand size = 25, antiderivative size = 162 \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\frac {(3 a-2 b) \sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f}+\frac {(3 a-2 b) b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 a f}-\frac {(3 a-2 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{5/2}}{3 a f} \]
[Out]
Time = 0.16 (sec) , antiderivative size = 162, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {4219, 464, 283, 201, 223, 212} \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\frac {\sqrt {b} (3 a-2 b) \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f}+\frac {b (3 a-2 b) \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 a f}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{5/2}}{3 a f}-\frac {(3 a-2 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 a f} \]
[In]
[Out]
Rule 201
Rule 212
Rule 223
Rule 283
Rule 464
Rule 4219
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\left (-1+x^2\right ) \left (a+b x^2\right )^{3/2}}{x^4} \, dx,x,\sec (e+f x)\right )}{f} \\ & = \frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{5/2}}{3 a f}+\frac {(3 a-2 b) \text {Subst}\left (\int \frac {\left (a+b x^2\right )^{3/2}}{x^2} \, dx,x,\sec (e+f x)\right )}{3 a f} \\ & = -\frac {(3 a-2 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{5/2}}{3 a f}+\frac {((3 a-2 b) b) \text {Subst}\left (\int \sqrt {a+b x^2} \, dx,x,\sec (e+f x)\right )}{a f} \\ & = \frac {(3 a-2 b) b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 a f}-\frac {(3 a-2 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{5/2}}{3 a f}+\frac {((3 a-2 b) b) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\sec (e+f x)\right )}{2 f} \\ & = \frac {(3 a-2 b) b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 a f}-\frac {(3 a-2 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{5/2}}{3 a f}+\frac {((3 a-2 b) b) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f} \\ & = \frac {(3 a-2 b) \sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f}+\frac {(3 a-2 b) b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 a f}-\frac {(3 a-2 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{5/2}}{3 a f} \\ \end{align*}
Time = 0.56 (sec) , antiderivative size = 164, normalized size of antiderivative = 1.01 \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\frac {\sqrt {2} \cos ^3(e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2} \left (3 \sec ^2(e+f x) \left (a+b-a \sin ^2(e+f x)\right )^{5/2}-(3 a-2 b) \left (-3 b^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b-a \sin ^2(e+f x)}}{\sqrt {b}}\right )+\sqrt {a+b-a \sin ^2(e+f x)} \left (a+4 b-a \sin ^2(e+f x)\right )\right )\right )}{3 b f (a+2 b+a \cos (2 (e+f x)))^{3/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(551\) vs. \(2(142)=284\).
Time = 6.93 (sec) , antiderivative size = 552, normalized size of antiderivative = 3.41
method | result | size |
default | \(-\frac {\left (a +b \sec \left (f x +e \right )^{2}\right )^{\frac {3}{2}} \left (6 \ln \left (-4 \sqrt {b}\, \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}-4 \sqrt {b}\, \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \sec \left (f x +e \right )-4 \sec \left (f x +e \right ) b \right ) \cos \left (f x +e \right )^{3} b^{\frac {5}{2}}-2 \cos \left (f x +e \right )^{6} \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, a b -9 \ln \left (-4 \sqrt {b}\, \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}-4 \sqrt {b}\, \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \sec \left (f x +e \right )-4 \sec \left (f x +e \right ) b \right ) \cos \left (f x +e \right )^{3} b^{\frac {3}{2}} a -2 \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, a b \cos \left (f x +e \right )^{5}+6 \cos \left (f x +e \right )^{4} \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, a b -8 \cos \left (f x +e \right )^{4} \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, b^{2}+6 \cos \left (f x +e \right )^{3} \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, a b -8 \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, b^{2} \cos \left (f x +e \right )^{3}-3 \cos \left (f x +e \right )^{2} \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, b^{2}-3 \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, b^{2} \cos \left (f x +e \right )\right )}{6 f b \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \left (b +a \cos \left (f x +e \right )^{2}\right ) \left (1+\cos \left (f x +e \right )\right )}\) | \(552\) |
[In]
[Out]
none
Time = 0.50 (sec) , antiderivative size = 278, normalized size of antiderivative = 1.72 \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\left [-\frac {3 \, {\left (3 \, a - 2 \, b\right )} \sqrt {b} \cos \left (f x + e\right ) \log \left (\frac {a \cos \left (f x + e\right )^{2} - 2 \, \sqrt {b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) - 2 \, {\left (2 \, a \cos \left (f x + e\right )^{4} - 2 \, {\left (3 \, a - 4 \, b\right )} \cos \left (f x + e\right )^{2} + 3 \, b\right )} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{12 \, f \cos \left (f x + e\right )}, -\frac {3 \, {\left (3 \, a - 2 \, b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) \cos \left (f x + e\right ) - {\left (2 \, a \cos \left (f x + e\right )^{4} - 2 \, {\left (3 \, a - 4 \, b\right )} \cos \left (f x + e\right )^{2} + 3 \, b\right )} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{6 \, f \cos \left (f x + e\right )}\right ] \]
[In]
[Out]
Timed out. \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 250, normalized size of antiderivative = 1.54 \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\frac {4 \, {\left (a + \frac {b}{\cos \left (f x + e\right )^{2}}\right )}^{\frac {3}{2}} \cos \left (f x + e\right )^{3} - 12 \, \sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} a \cos \left (f x + e\right ) + 12 \, \sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} b \cos \left (f x + e\right ) + \frac {6 \, \sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} a b \cos \left (f x + e\right )}{{\left (a + \frac {b}{\cos \left (f x + e\right )^{2}}\right )} \cos \left (f x + e\right )^{2} - b} - 9 \, a \sqrt {b} \log \left (\frac {\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right ) + 6 \, b^{\frac {3}{2}} \log \left (\frac {\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right )}{12 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1388 vs. \(2 (142) = 284\).
Time = 1.24 (sec) , antiderivative size = 1388, normalized size of antiderivative = 8.57 \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin ^3(e+f x) \, dx=\int {\sin \left (e+f\,x\right )}^3\,{\left (a+\frac {b}{{\cos \left (e+f\,x\right )}^2}\right )}^{3/2} \,d x \]
[In]
[Out]